﻿/* 点卷商店 */

var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/summary#\r\n#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#亲爱的#r#h ##k您好，为庆祝时光冒险岛震撼公测，本F将开展公测3天乐活动，每天在线都可以领到大量福利哦！！\r\n#b#L0#冲级奖励#l   \r\n#L1#首充礼包#l \r\n#L2#在线奖励#l \r\n#b#L3#猜灯谜，拿点卷#l";//#b#L4#坚韧意志#l    #b#L5#图腾合成#l"; //\r\n#b#L6#时装商铺#l    #L7#极品椅子#l     //#L8#极品坐骑#l 
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(1540008, "kaif1");
            break;
        case 1:
            cm.dispose();
            cm.openNpc(1540008, "kaif2");
            break;
        case 2:
            cm.dispose();
            cm.openNpc(1540008, "kaif3");
            break;
        case 3:
            cm.dispose();
            cm.openNpc(1540008, "kaif4");
            break;
        case 4:
            cm.dispose();
            cm.openNpc(9010047, "kaif4");
            break;
        case 5:
		//cm.sendOk("请到鲁彪那去买吧，我这里都没货了~");
            cm.dispose();
            cm.openNpc(9000178);
            break;
        case 6:
            cm.dispose();
            cm.openNpc(9310555,"haohuasp");
            break;
	case 7:
            cm.dispose();
            cm.openNpc(1032205,"111"); //破攻石头
            break;
	case 8:
            cm.dispose();
            cm.openNpc(1032206,"jpzj"); //一键潜能
            break;
        }
    }
}